const mutations = {
  //设置菜单
  SETMENU(state, val) {
    state.menu_arr = val;
  },
  //设置当前路由
  SETACTIVEPATH(state, val) {
    state.activePath = val;
  },
  //设置专家个人信息
  SETEXPERTINFO(state, val) {
    state.expert_info = val;
  },
  //设置专家个人信息
  SETLOGININFO(state, val) {
    state.login_info = val;
  },
  //设置token
  SETTOKEN(state, val) {
    state.token = val;
  },
  //实名认证弹框
 REALAUTHEN(state, val) {
    state.realAuthentication = val;
  },
  //重置数据
  RESTSTATE(state) {
    for (const key in state) {
      if (Object.hasOwnProperty.call(state, key)) {
        state[key] = "";
      }
    }
  },
};
export default mutations;
